home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
fulldb13.arc
/
DEMO.PAS
next >
Wrap
Pascal/Delphi Source File
|
1991-10-18
|
567b
|
21 lines
program demo;
{ Demo program for FULLDB. Compile normally, then single step into
the assembler routines wordcount and getword! }
{ NB: See the special instructions to recompile PARSE.PAS and reassemble
PARSE.ASM if PARSE.TPU or PARSE.OBJ is missing, or if you're using
other than TP 6.0. }
uses parse;
var
s : string;
w : word;
begin
s := ' This sentence has 5 words';
writeln(wordcount(s));
for w:=0 to 6 do
writeln('w = ',w,' length = ',length(getword(w,s)),' word = ',getword(w,s));
end.